<?php

/**
 * plugin help
 * 
 * @return
 * @package plugins
 */
class plugin_bugreport extends Plugin {
	function plugin_help () {
		
	}
	
	function loadWindow($obj) {
		echo file_get_contents(dirname(__FILE__)."/form.html");
	}
	
	function submit($obj) {
		mail(EMAIL, $obj->type, "
Date: ".date("d-m-y",time())."

Message: ".$obj->report."
","from: Joel <noreturn@joel.com>");
	}
}

?>
